import service from "@/utils/request";

export function useCreateProjectApi(data: any){
    return service.post('/project/project', data)
}
export function useUpdateProjectApi(data: any){
    return service.put('/project/project', data)
}
export function useProjectTypeListApi(){
    return service.get("/project/type/cascade")
}

export function useProjectInfoApi(id: string){
    return service.get("/project/project/info/" + id)
}

export function useProjectNameListApi(){
    return service.get("/project/project/select")
}
export function useProjectEndApi(id: string){
    return service.put("/project/project/over", {
        id: id
    })
}
export function useProjectApplicationInfoApi(id: string){
    return service.get("/project/projectApply/info/" + id)
}
export function useProjectApplicationResultApi(data: any){
    return service.put("/project/projectApply/apply", data)
}

